<!DOCTYPE html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生报名系统</title>
    <link rel="shortcut icon" href="./img/favicon.ico">

    <link href="./css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="./css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="./css/animate.min.css" rel="stylesheet">
    <link href="./css/style.min.css" rel="stylesheet">
    <link href="./css/common.min.css" rel="stylesheet">
</head>

<body class="full-height-layout gray-bg top-navigation">

<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom white-bg">
            <nav class="navbar navbar-static-top" role="navigation">
                <div>
                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse"
                            class="navbar-toggle collapsed" type="button">
                        <i class="fa fa-reorder"></i>
                    </button>
                    <a href="./navbar.html" class="navbar-brand">学生报名系统</a>
                </div>
                <div class="navbar-collapse collapse" id="navbar">
                    <!--<ul class="nav navbar-top-links navbar-right">
                        <li>
                            <a id="menu_loginOut" href="/logout">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>-->
                    <ul class="nav navbar-nav navbar-right">

                        <!--<li class="active">-->
                        <li>
                            <a aria-expanded="false" role="button" id="menu_index">
                                <i class="fa fa-home"></i> 首页
                            </a>
                        </li>

                        <li>
                            <a aria-expanded="false" role="button" id="menu_activity">
                                <i class="fa fa-frown-o"></i> 活动
                            </a>
                        </li>

                        <li>
                            <a aria-expanded="false" role="button" id="menu_shetuan">
                                <i class="fa fa-bar-chart"></i> 社团
                            </a>
                        </li>
                        <!--<li class="dropdown">
                            <a aria-expanded="false" role="button" href="javascript:void(0)" id="menu_baoming"
                               class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-check-square"></i>报名
                                <span id="toDoJudge" class="label label-info" style="padding: 1px 4px"></span>
                            </a>
                        </li>-->
                        <li>
                            <a aria-expanded="false" role="button" id="menu_own">
                                <i class="fa fa-user"></i> 个人信息
                            </a>
                        </li>

                        <li>
                            <a id="menu_loginOut" href="/logout">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
        <div class="row J_mainContent" id="content-main2">
            <iframe class="J_iframe" name="iframe" width="100%" height="100%" src="activity.html" frameborder="0" style="display: inline;">
            </iframe>
        </div>
        <div class="footer">
            <div class="pull-right">
                By：<a href="#" target="_blank">lyd</a>
            </div>
            <div>
                <strong>Copyright</strong> Graduation project &copy; 2019
            </div>
        </div>
    </div>
</div>

<script src="./js/jquery.min.js?v=2.1.4"></script>
<script src="./js/bootstrap.min.js?v=3.3.6"></script>
<script src="./js/jquery.cookie.js"></script>
<script src="./js/common.js"></script>

<script>

    $(function () {
        $(".navbar-nav").find("li").each(function () {
            var a = $(this).find("a:first")[0];
            if ($(a).attr("href") === location.pathname) {
                $(this).addClass("active");
            } else {
                $(this).removeClass("active");
            }
        });
    });

    function goTo(url){
        $("iframe[name='iframe']").attr("src",url);
    }
    $(document).ready(function () {
        // updateTodoJudgeCount();
        $("#menu_index").click(function(){
            goTo("index.html");
        });
        $("#menu_activity").click(function(){
            goTo("activity.html");
        });
        $("#menu_shetuan").click(function(){
            goTo("shetuan.html");
        });
        $("#menu_own").click(function(){
            goTo("user.html");
        })
    });
</script>

</body>
</html>